﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.UI;

// 功能大厅
public class FuncHall
{
    public void Init()
    {
        var root = UIManager.Instance.AddUI("Prefabs/UI/FightUI/FuncHall", UILayer.FightUI);

        // 绑定按钮事件
        var btnAttribute = root.FindComponent<Button>("BtnAttribute");

        btnAttribute.onClick.AddListener(onAttrClick);
    }

    private void onAttrClick()
    {
        //UIManager.Instance.AddUI("Prefabs/UI/System/AttributeDlg");
        DialogMgr.Instance.OpenDialog<AttributeDlg>();
    }
}
